var express = require("express");
var router = express.Router();

/* GET users listing. */

// localhost:3000/users/
router.get("/", function (req, res, next) {
  res.send("respond with a resource");
});

// localhost:3000/users/a
router.get("/a", function (req, res, next) {
  res.send("a get");
});

router.post("/a", function (req, res, next) {
  res.send("a post");
});
router.put("/a", function (req, res, next) {
  res.send("a put");
});
router.delete("/a", function (req, res, next) {
  res.send("a delete");
});

module.exports = router;
